﻿@if (Request.IsAuthenticated) {
    <text>
        @*Hello, @Html.ActionLink(User.Identity.Name, "Manage", "SGAccount", routeValues: null, htmlAttributes: new { @class = "username", title = "Manage" })!*@
        Olá, @User.Identity.Name
        @using (Html.BeginForm("LogOff", "SGAccount", FormMethod.Post, new { id = "logoutForm" })) {
            @Html.AntiForgeryToken()
            <a href="javascript:document.getElementById('logoutForm').submit()">Log off</a>
            @Html.ActionLink("Mudar Senha", "ChangePassword", "SGAccount")
        }
    </text>
}
else
{
    <ul>
        @* <li>@Html.ActionLink("Register", "Register", "SGAccount", routeValues: null, htmlAttributes: new { id = "registerLink" })</li> *@
        <li>@Html.ActionLink("Logar", "Login", "SGAccount", routeValues: null, htmlAttributes: new { id = "loginLink" })</li>
    </ul>
}
